<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%>

<%@ page import="javax.portlet.PortletPreferences"%>

<portlet:defineObjects />



<%
	PortletPreferences prefs = renderRequest.getPreferences();
	String greeting_edit = (String) prefs.getValue("greeting",
			"Hello! Welcome to our portal.");
%>

<portlet:actionURL var="editGreetingURL">
</portlet:actionURL>

<aui:form action="<%=editGreetingURL%>" method="post">
	<aui:input label="greeting" name="abc_input" type="text"
		value="<%=greeting_edit%>" />
	<aui:button type="submit" />
</aui:form>

<portlet:renderURL var="viewGreetingURL">
	<portlet:param name="mvcPath" value="/html/view.jsp" />
</portlet:renderURL>

<p>
	<a href="<%=viewGreetingURL%>">&larr; Back</a>
</p>